package org.dataSource;

public class Record {
	int age;
	String workClass;
	int fnlwgt;
	String education;
	int educationYears;
	String maritalStatus;
	String occupation;
	String relationship;
	String race;
	String sex;
	int capitalGain;
	int capitalLoss;
	int hoursPerWeek;
	String nativeCountry;
	String income;

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public int getFnlwgt() {
		return fnlwgt;
	}

	public void setFnlwgt(int fnlwgt) {
		this.fnlwgt = fnlwgt;
	}

	public String getEducation() {
		return education;
	}

	public void setEducation(String education) {
		this.education = education;
	}

	public int getEducationYears() {
		return educationYears;
	}

	public void setEducationYears(int educationYears) {
		this.educationYears = educationYears;
	}

	public String getMaritalStatus() {
		return maritalStatus;
	}

	public void setMaritalStatus(String maritalStatus) {
		this.maritalStatus = maritalStatus;
	}

	public String getOccupation() {
		return occupation;
	}

	public void setOccupation(String occupation) {
		this.occupation = occupation;
	}

	public String getRelationship() {
		return relationship;
	}

	public void setRelationship(String relationship) {
		this.relationship = relationship;
	}

	public String getRace() {
		return race;
	}

	public void setRace(String race) {
		this.race = race;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public int getCapitalGain() {
		return capitalGain;
	}

	public void setCapitalGain(int capitalGain) {
		this.capitalGain = capitalGain;
	}

	public int getCapitalLoss() {
		return capitalLoss;
	}

	public void setCapitalLoss(int capitalLoss) {
		this.capitalLoss = capitalLoss;
	}

	public int getHoursPerWeek() {
		return hoursPerWeek;
	}

	public void setHoursPerWeek(int hoursPerWeek) {
		this.hoursPerWeek = hoursPerWeek;
	}

	public String getNativeCountry() {
		return nativeCountry;
	}

	public void setNativeCountry(String nativeCountry) {
		this.nativeCountry = nativeCountry;
	}

	public String getWorkClass() {
		return workClass;
	}

	public void setWorkClass(String workClass) {
		this.workClass = workClass;
	}

	public String getIncome() {
		return income;
	}

	public void setIncome(String income) {
		this.income = income;
	}

	public String getContinent() {
		switch (this.nativeCountry) {
		case "Portugal":
		case "Greece":
		case "Yugoslavia":
		case "Ireland":
		case "Holand-Netherlands":
		case "England":
		case "Italy":
		case "France":
		case "Scotland":
		case "Hungary":
		case "Poland":
		case "Germany":
			return "Europe";

		case "Cuba":
		case "Ecuador":
		case "Columbia":
		case "United-States":
		case "Nicaragua":
		case "South":
		case "Haiti":
		case "Honduras":
		case "Peru":
		case "Trinadad&Tobago":
		case "Puerto-Rico":
		case "Guatemala":
		case "Outlying-US(Guam-USVI-etc)":
		case "Jamaica":
		case "Mexico":
		case "El-Salvador":
		case "Canada":
		case "Dominican-Republic":
			return "America";
		
		case "Iran":
		case "Philippines":
		case "Taiwan":
		case "Thailand":
		case "Vietnam":
		case "India":
		case "China":
		case "Hong":
		case "Cambodia":
		case "Laos":
		case "Japan":
			return "Asia";
			
		default:
			return this.nativeCountry;
		}
	}
		
		public boolean getUnitedStatesOrNot() {
			switch (this.nativeCountry) {
			
			case "United-States":
				return true;

			default:
				return false;
			}
	}

}
